package com.colt.contentcenter.feighclient.fallback;

import com.colt.contentcenter.domain.dto.messaging.UserUpdateBonusMsgDTO;
import com.colt.contentcenter.domain.dto.user.UserDTO;
import com.colt.contentcenter.feighclient.UserCenteFeighrClient;
import org.springframework.stereotype.Component;

/**
 * @program: content-center
 * @description: feignclent的fallback类
 * @author: colt
 * @create: 2020-05-28 14:41
 **/
@Component
public class UserCenterFeignClientFallback implements UserCenteFeighrClient {
    @Override
    public UserDTO findById(Integer id) {
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("一个默认用户");
        return userDTO;
    }



    @Override
    public UserDTO query(UserDTO userDTO) {
        return null;
    }

    @Override
    public UserDTO addBonus(UserUpdateBonusMsgDTO dto) {
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("一个默认用户");
        return userDTO;
    }
}
